package com.zh.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.zh.domain.Model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.Map;

/**
 * @TableName task_dynamics
 */
@TableName(value ="task_dynamics",autoResultMap = true)
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@ApiModel(value = "TaskDynamics",description = "任务动态")
public class TaskDynamics extends BaseEntity implements Serializable {
    private Integer id;
    @ApiModelProperty("任务id")
    private Integer taskId;
    @ApiModelProperty("动态内容")
    private String content;
    @ApiModelProperty("动态参数")
    @TableField(typeHandler = JacksonTypeHandler.class,value = "params")
    private Map<String,Object> params;
    private static final long serialVersionUID = 1L;
}